﻿<%@page import="cn.jdy.common.constant.GlobalConstant"%>
<%@ page language="java" contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="jdy" uri="http://www.qwe.com.cn/tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>康养旅居网</title>
    <%
	String path = request.getContextPath(); 
	request.setAttribute("path",path);
	request.setAttribute("VERSION", GlobalConstant.VERSION);// 版本号[试用]，每次发布时更新最后一位数;用于保存静态资源文件版本， 更新浏览器缓存
	%>
	<script type="text/javascript">
	var _path = '<%=path %>';
	var _user = '<%=session.getAttribute("user") %>';
	</script>
	          <jsp:include page="../common/common.jsp"/>
	
	<link rel="stylesheet" href="${path}/css/mui.min.css">
<link rel="stylesheet" href="${path}/iconfont/iconfont.css">
      <link rel="stylesheet" href="${path}/css/my20181016.css">
</head>
<body>
  <div class="title">
		<div class="top">
			<div class="pop">
                        <img src="${user.headImg}" alt="">
			</div>
			<div class="info">
				<span class="color">${member.mobile} </span> <br />
				<p>
				  <c:if test="${member.userLevel eq '0' }">运营商</c:if>
				 <c:if test="${member.userLevel eq '1'}">超级会员</c:if>
                 <c:if test="${member.userLevel eq '2'}">普通会员</c:if>
                 <c:if test="${member.userLevel eq '3' }">初级代理商</c:if>
				 <c:if test="${member.userLevel eq '4'}">高级代理商</c:if>
              <c:if test="${member.userLevel eq '5' }">1星运营商</c:if>
				 <c:if test="${member.userLevel eq '6'}">2星运营商</c:if>
				        <c:if test="${member.userLevel eq '7' }">3星运营商</c:if>
				 <c:if test="${member.userLevel eq '8'}">4星运营商</c:if>
				        <c:if test="${member.userLevel eq '9' }">5星运营商</c:if>
					 &nbsp; 粉丝数: <span class="color">${fs==null?0:fs}</span>
				</p>
			</div>
			<div class="setting">
                <i class="iconfont icon-account" onclick="opensez(${member.money})"></i>
			</div>
		</div>
		<div class="integral">
			<div class="profit">
				<span>昨日消费奖励</span><br /> <b> 
	<fmt:formatNumber type="number" value="${zjjf==null?0.0:zjjf}" pattern="0.00"/> 
				 </b>
			</div>
			<div class="accumulation">
				<div class="left">
					<span>累计消费奖励</span><br /> <b>
						<fmt:formatNumber type="number" value="${member.score}" pattern="0.00"/> 
					</b>
				</div>
				<div class="right">
					<span>今日推广奖励 </span><br /> <b>
											<fmt:formatNumber type="number" value="${jztg==null?0.0:jztg}" pattern="0.00"/> 
					</b>
				</div>
			</div>
		</div>
	</div>
		<div class="money">
		<span>总推广佣金:<b>	<fmt:formatNumber type="number" value="${member.ktxmoney==null?0.0:member.ktxmoney}" pattern="0.00"/> 元</b></span>
			<span> 佣金余额:<b><fmt:formatNumber type="number" value="${member.money==null?0.0:member.money}" pattern="0.00"/> 元</b></span>
		<!--  <button onclick="opentix(${member.money})">提现</button>-->
	</div>
	<div class="blank"></div>
	
		<ul class="member-list"  style="    background-color:white;'">
			<li>
				<a href="${path}/member/openallfans">
					<img src="${path}/images/m1.png" alt="" class="icon"><br>粉丝团队
				</a>
			</li>
			<li>
				<a href="${path}/member/openmingxi">
					<img src="${path}/images/m2.png" alt="" class="icon"><br>佣金收益
				</a>
			</li>
			<li>
				<a href="#"  onclick="openzd(${member.myyqm})">
					<img src="${path}/images/m3.png" alt="" class="icon"><br>推广
				</a>
			</li>
		<li>
				<a href="#"  onclick="opentix(${member.money})">
					<img src="${path}/images/m4.png" alt="" class="icon"><br>提现
				</a>
			</li> 
		</ul>
	<ul class="member-list"  style="    background-color:white;'">
			<li>
				<a href="http://kylj.kylj365.com/w/productx/show-90.html">
					<img src="${path}/images/m3.png" alt="" class="icon"><br>初级代理
				</a>
			</li>
			<li>
				<a href="http://kylj.kylj365.com/w/productx/show-89.html">
							<img src="${path}/images/m3.png" alt="" class="icon"><br>高级代理
				</a>
			</li>
			<li>
				<a href="${path}/memberCard/index?memberid=${member.id}">
					<img src="${path}/images/m2.png" alt="" class="icon"><br>我的银行卡
				</a>
			</li>
					<li>
				<a href="${path}/memberCard/myTixianlist">
					<img src="${path}/images/m2.png" alt="" class="icon"><br>提现记录
				</a>
			</li>
		</ul>

	


        
        <div class="dateil orderdateil"  id="mydan">
            <h4 style="font-size:16px;">我的订单</h4>
          
            
        
        </div>
        
    
    <jsp:include page="../common/footer.jsp"/>
     <script src="${path}/js/myorder.js"></script>
</body>
<script>
 
function opensez(){
	location.href="${path}/member/indexsz";
}
function openmingxi(){
	location.href="${path}/member/openmingxi";
}

function opentix(){
	location.href="${path}/member/toTmoeryme";
}

function openzd(id){
	  //底部对话框
	/*  layer.open({
	    content: '页面打开后点击右上角分享给好友或者朋友圈'
	    ,btn: ['确定', '取消']
	    ,skin: 'footer'
	    ,yes: function(index){
	    //  layer.open({content: '执行删除操作'})
	 //     location.href="${path}/register/index?yqm="+id;
	  location.href="${path}/register/totoindex?yqm="+id;

	    }
	  });*/
	  
	  location.href="${path}/register/totoindex?yqm="+id;
}
</script>
</html>

